<template>
    <div>
        <el-form :model="formData" ref="form" label-width="80px" :inline="false">
            <el-form :model="formData" ref="form" label-width="80px" :inline="false">
                <el-form-item label="物料编码">
                    <el-input v-model="saleman" placeholder="请输入物料编码"></el-input>
                </el-form-item>
                <el-form-item label="物料名称">
                    <el-input v-model="saleman" placeholder="请输入物料名称"></el-input>
                </el-form-item>
                <el-form-item label="规格型号">
                    <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="textarea">
                    </el-input>
                </el-form-item>
                <el-form-item label="单位">
                    <el-select v-model="isEnabled" placeholder="选择是否启用">
                        <el-option label="公斤" value="1"></el-option>
                        <el-option label="kg" value="2"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="所属分类">
                    <el-select v-model="isEnabled" placeholder="请选择">
                        <el-option label="物料" value="1"></el-option>
                        <el-option label="产品" value="2"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="安全库存">
                    <el-radio v-model="radio" label="1">是</el-radio>
                    <el-radio v-model="radio" label="2">否</el-radio>
                </el-form-item>

                <el-form-item label="是否启用">
                    <el-radio v-model="radio" label="1">是</el-radio>
                    <el-radio v-model="radio" label="2">否</el-radio>
                </el-form-item>
                <el-form-item label="备注">
                    <el-input type="textarea" :rows="2" v-model="textarea">
                    </el-input>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="onSubmit">立即添加</el-button>
                    <el-button type="primary" @click="close">关闭</el-button>
                </el-form-item>
            </el-form>
        </el-form>
    </div>
</template>

<script setup>
import { ref, defineEmits } from 'vue'
import request from "@/api/request";
let emits = defineEmits(['close'])
let formData = ref({})

let close = () => {
    emits('close')
}
</script>

<style lang='scss' scoped></style>
